package com.aismall.service;

import com.aismall.service.UserService;
import com.aismall.service.ApplicationConfig;
import com.aismall.spring.MyApplicationContext;

/**
 * @ClassName Test
 * @Description TODO
 * @Author @AISMALL
 * @Date 2024/4/2 20:54
 */
public class Test {
    public static void main(String[] args) {
        // 创建一个Spring容器  使用配置类的方式
        MyApplicationContext applicationContext = new MyApplicationContext(ApplicationConfig.class);
        UserInterface userService = (UserInterface) applicationContext.getBean("userService");
        OrderService orderService = (OrderService) applicationContext.getBean("orderService");
        System.out.println(userService);
        System.out.println(orderService);
        userService.enhanceTest();
        //userService.test();
    }
}
